package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.TemplateFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

/**
 * @author cjr
 */
@Component
public class TemplateFallback implements TemplateFeign {
    @Override
    public ResultModel save(TemplateSaveRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<TemplateDetailResponse> detail(TemplateDetailRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel up(TemplateUpRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel down(TemplateDownRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<TemplatePreviewResponse> preview(TemplatePreviewRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<TemplateCreateResponse> create(TemplateCreateRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<TemplateGetResponse> get(TemplateGetRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<TemplateGetResponse> get2(TemplateGet2Request request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateByCard(TemplateUpdateByCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel removeArticle(TemplateRemoveArticleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<TemplateListVo> list(TemplateListDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel listAsync(TemplateListDto request) {
        return ResultModel.faultTolerant();
    }
}
